<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%-- This would normally be configured (via Spring, for example) --%>
<jsp:useBean id="contentRef" class="com.googlecode.layout4j.domain.SimpleContentRefImpl" scope="request">
	<jsp:setProperty name="contentRef" property="dataId" value="${param.dataId}" />
	<jsp:setProperty name="contentRef" property="dataTypeId" value="${param.dataTypeId}" />
	<jsp:setProperty name="contentRef" property="styleId" value="${param.styleId}" />
</jsp:useBean>
<c:choose>
	<c:when test="${param.styleId == 1}">
		<jsp:include page="content/dataType1/style1-normal.jsp" />
	</c:when>
	<c:when test="${param.styleId == 2}">
		<jsp:include page="content/dataType1/style2-high.jsp" />
	</c:when>
	<c:when test="${param.styleId == 3}">
		<jsp:include page="content/dataType1/style3-wide.jsp" />
	</c:when>
	<c:otherwise>
		<p>Style '${param.styleId}' not recognized</p>
	</c:otherwise>
</c:choose>